import request from '@/js/request';

export default {
	// 用户端及律师端个人基本信息
	getUserInfo: () =>
		request({
			method: "GET",
			url: "/api/user/info",
		}),
	// 关于我们接口
	getAboutUsText: () =>
		request({
			method: "POST",
			url: "/api/dev_personal/getAboutUsText",
		}),
	// 分享海报地址接口
	getInviteImage: () =>
		request({
			method: "POST",
			url: "/api/dev_personal/getInviteImage",
		}),
	// 注销账户接口
	userLogOff: (data) =>
		request({
			method: "POST",
			url: "/api/user/logOff",
			data,
		}, {
			loading: "提交中...",
			isToast: true,
		}),
	// 修改个人信息接口
	saveBaseInfo: (data) =>
		request({
			method: "POST",
			url: "/api/user/saveBaseInfo",
			data,
		}, {
			loading: "提交中...",
			isToast: true,
		}),
	// 退出登录接口
	logout: () =>
		request({
			method: "POST",
			url: "/api/user/logout",
		}, {
			loading: "退出中...",
			isToast: true,
		}),
	// 获取律所认证数据
	queryLawfirm: () =>
		request({
			method: "POST",
			url: "/api/dev_lawfirm/index",
		}),
	// 提交律所认证接口
	lawfirmSubmit: (data) =>
		request({
			method: "POST",
			url: "/api/dev_lawfirm/add",
			data
		}, {
			loading: "提交中...",
			isToast: true,
		}),
	// 会员购买记录
	getMyVipRecord: (data) =>
		request({
			method: "GET",
			url: "/api/dev_vip/my",
			data
		}),
	// 提现申请
	withdrawalSubmit: (data) =>
		request({
			method: "POST",
			url: "/api/dev_withdrawal/submit",
			data
		}, {
			loading: "提交中...",
			isToast: true,
		}),
	// 获取启屏页
	getGuide: () =>
		request({
			method: "GET",
			url: "/api/index/guide",
		}),
}